﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace AMail.Common
{
  [global::System.Serializable]
  public class InvalidEmlException : Exception
  {
    //
    // For guidelines regarding the creation of new exception types, see
    //    http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpgenref/html/cpconerrorraisinghandlingguidelines.asp
    // and
    //    http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dncscol/html/csharp07192001.asp
    //

    public InvalidEmlException() { }
    public InvalidEmlException(string message) : base(message) { }
    public InvalidEmlException(string message, Exception inner) : base(message, inner) { }
    protected InvalidEmlException(
    System.Runtime.Serialization.SerializationInfo info,
    System.Runtime.Serialization.StreamingContext context)
      : base(info, context) { }
  }

  [global::System.Serializable]
  public class WrongPasswordException : Exception
  {
    //
    // For guidelines regarding the creation of new exception types, see
    //    http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpgenref/html/cpconerrorraisinghandlingguidelines.asp
    // and
    //    http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dncscol/html/csharp07192001.asp
    //

    public WrongPasswordException() { }
    public WrongPasswordException(string message) : base(message) { }
    public WrongPasswordException(string message, Exception inner) : base(message, inner) { }
    protected WrongPasswordException(
    System.Runtime.Serialization.SerializationInfo info,
    System.Runtime.Serialization.StreamingContext context)
      : base(info, context) { }
  }

  [Serializable]
  public class SaveArchiveException : Exception
  {
    public SaveArchiveException() { }
    public SaveArchiveException(string message) : base(message) { }
    public SaveArchiveException(string message, Exception inner) : base(message, inner) { }
    protected SaveArchiveException(
    System.Runtime.Serialization.SerializationInfo info,
    System.Runtime.Serialization.StreamingContext context)
      : base(info, context) { }
  }

}
